<template>
		<router-view />
</template>

<script>
	export default {
		name: 'App',
		data() {
			return {
				shift: '/',
				user: '',
				code: 1206
			}
		},
		mounted() {
		},
		methods: {
			//登录
			login() {

				//获取值
				let self = this;
				self.$ajax.get("/login")
					.then(function(res) {
						self.code = res.data.code;
						if (self.code == 200) {
							self.user = res.data.data;
						}
					})
					.catch(function(err) {
						console.log(err);

					});
			}
		}
	}
</script>

<style>
	@import 'https://cdn.bootcss.com/material-design-icons/3.0.1/iconfont/material-icons.css';
</style>
